package com.rds.workflow.mapper;

import com.rds.workflow.domain.RdaNode2TaskRel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RdaNode2TaskRelMapper {

    public int insertRdaNode2TaskRel(RdaNode2TaskRel rdaNode2TaskRel);

    public List<RdaNode2TaskRel> selectRdaNode2TaskRelbyTaskid(@Param("taskid") Long taskid);

    public List<RdaNode2TaskRel> selectRdaNode2TaskRelbyNodeid(@Param("nodeid") Long nodeid);

    /**
     * 根据流程id删除任务关系表
     *
     * @param workflowid 流程id
     * @return 结果
     */
    public int deleteRdaNode2TaskRelByWorkflowid(@Param("workflowid") Long workflowid);

}
